package com.neuedu.javase.jdbc.entity;

import java.util.Date;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-10-11 10:41
 * 描述 : 实体类
 */
public class User {
    private Integer id;
    private String username;
    private String displayname;
    private String password;
    private Date birthday;
    private String gender;
    private String telephone;
    private String email;
    private Date lastLogintime;
    private Date create_time;
    private String valid;

    //使用idea工具生成  setter  getter toString  构造器
    //ALT +INSERT  生成代码的
    //CTRL +ALT +L


    public User() {
    }

    public User(Integer id, String username, String displayname, String password, Date birthday, String gender, String telephone, String email, Date lastLogintime, Date create_time, String valid) {
        this.id = id;
        this.username = username;
        this.displayname = displayname;
        this.password = password;
        this.birthday = birthday;
        this.gender = gender;
        this.telephone = telephone;
        this.email = email;
        this.lastLogintime = lastLogintime;
        this.create_time = create_time;
        this.valid = valid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getLastLogintime() {
        return lastLogintime;
    }

    public void setLastLogintime(Date lastLogintime) {
        this.lastLogintime = lastLogintime;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", displayname='" + displayname + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                ", gender='" + gender + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", lastLogintime=" + lastLogintime +
                ", create_time=" + create_time +
                ", valid='" + valid + '\'' +
                '}';
    }
}
